package json.test.two;

import net.sf.json.JSONObject;

public class test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String json = "{a:true,b:1,c:\"json\"}";
		JSONObject jsonObject = JSONObject.fromObject(json);
		BeanA bean = (BeanA) JSONObject.toBean(jsonObject, BeanA.class);
		System.out.println(bean);
	}

}
